﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DoAnWeb.BUS;
using DoAnWeb.DAO;
using DoAnWeb.DTO;

namespace DoAnWeb
{
    public partial class HistoryDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CurrentContext.IsLogged != true) Response.Redirect("~/Default.aspx"); 
            if (Request.QueryString["oderID"] == null) Response.Redirect("~/Default.aspx");
            else
            {
                int oderID = int.Parse(Request.QueryString["oderID"]);
                CT_DonHangBUS bus = new CT_DonHangBUS();
                gvListCT_SanPham.DataSource = bus.GetList_DonHang(oderID);
                gvListCT_SanPham.DataBind();
            }   
        }

        protected void gvListCT_SanPham_RowDataBound(object sender, GridViewRowEventArgs e)
        {

        }
    }
}